package tieba.core.exception;

public class BaseException extends RuntimeException {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private int errorCode;
	private int status;
	private Object data;
	public BaseException() {
		super();
	}

	public BaseException(String message,int errorCode, int status, Object data) {
		super(message);
		this.errorCode = errorCode;
		this.status = status;
		this.data = data;
	}

	public BaseException(String message,int errorCode) {
		super(message);
		this.errorCode = errorCode;
	}

	public BaseException(int errorCode) {
		super();
		this.errorCode = errorCode;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
}
